package org.school.streaming.net;

/**
 * @authors Jeffrey Goudzwaard,
 * 			Davin Terrizzi
 * @version	1.0
 * @date	18-4-2013
 */

/**
 * Enum representing state of server
 * @author Davin
 *
 */
public enum State
{
	INIT( 0 ),
	READY( 1 ),
	PLAYING( 2 );
	
	private int code;
	
	/**
	 * Constructor setting class field
	 * @param code Integer representing server state
	 */
	State( int code )
	{
		this.code = code;
	}
	
	public int getCode()
	{
		return code;
	}
}
